import 'package:freemusic/model/AbstractModel.dart';

class NeteaseAccount extends AbstractModel {
  String account;
  String password;
  String token;
  String nickname;
  String avatarUrl;
  int follows;
  int playlistCount;

  void fromRemoteJosn(Map json){
    if(json['code'] != 200){
      return ;
    }
    final accountJsong = json['account'];
    id = accountJsong['id'];
    token = json['token'];
    final profile = json['profile'];
    nickname = profile['nickname'];
    avatarUrl = profile['avatarUrl'];
    follows = profile['follows'];
    playlistCount = profile['playlistCount'];

  }

}